package com.example.fireassistant_server.dto.user;


import com.example.fireassistant_server.dto.RoleDto;
import com.example.fireassistant_server.entity.Company;
import com.example.fireassistant_server.entity.File;
import com.example.fireassistant_server.enums.Gender;
import lombok.Data;
import org.hibernate.annotations.UpdateTimestamp;

import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import java.util.Date;
import java.util.List;

@Data
public class UserDto {

    private String id;

    private String username;

    private String nickname;

    private List<RoleDto> roles;

    private Gender gender;

    private Boolean locked;

    private String source;

    private Boolean enabled;

    private Boolean applyAdmin;

    private Company company;

    private File file;

    private int credits;

    private String last_login_ip;

    private Date last_login_time;

    private Date created_time;

    private Date updated_time;

}
